package com.cloudcross.ssp.common;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class LoadConfig {
    private static Properties properties;
    static {
        properties = new Properties();  
        InputStream in = LoadConfig.class.getResourceAsStream("/jscode.properties");
        try {
            properties.load(in);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public static String getProperties(String key) {
        try {
            return properties.getProperty(key);
        } catch (Exception e) {
            return "";
        }

    }

}
